package com.mbyte.easy.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mbyte.easy.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 操作记录表
 * </p>
 *
 * @author lp
 * @since 2020-01-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_draft_log")
public class DraftLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 操作用户id
     */
    private Long userId;

    @TableField(exist = false)
    private String userName;
    /**
     * 稿件id
     */
    private Long draftId;

    /**
     * 操作内容
     */
    private String actionContent;
    /**
     * 组id
     */
    private String groupId;

    @TableField(exist = false)
    private String groupName;

    /**
     * 操作类型
     */
    private String actionType;

    /**
     * 原状态
     */
    private Integer primaryState;

    /**
     * 修改后状态
     */
    private Integer afterState;

    /**
     * 原因
     */
    private String reason;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;


}
